import * as work from './controller'

export const baseUrl = '/work'

export default [
{
    method: 'ALL',
    route: '/getWorkType',
    handlers: [work.getWorkType]
},

{
    method: 'ALL',
    route: '/getNormalTypeCount',
    handlers: [work.getNormalTypeCount]
},
{
    method: 'ALL',
    route: '/getNormalGategoryCount',
    handlers: [work.getNormalGategoryCount]
},
{
    method: 'ALL',
    route: '/getChainTypeCount',
    handlers: [work.getChainTypeCount]
},
{
    method: 'ALL',
    route: '/getChainGategoryCount',
    handlers: [work.getChainGategoryCount]
},
{
    method: 'POST',
    route: '/getNormalTypeCountByUid',
    handlers: [work.checkToken,work.getNormalTypeCountByUid]
},
{
    method: 'POST',
    route: '/getNormalTypeGategoryByUid',
    handlers: [work.checkToken,work.getNormalTypeGategoryByUid]
},
{
    method: 'POST',
    route: '/getChainTypeCountByUid',
    handlers: [work.checkToken,work.getChainTypeCountByUid]
},
{
    method: 'POST',
    route: '/getChainTypeGategoryByUid',
    handlers: [work.checkToken,work.getChainTypeGategoryByUid]
},

{
    method: 'POST',
    route: '/normalWorkList',
    handlers: [work.checkToken,work.normalWorkList]
},
{
    method: 'POST',
    route: '/createNormalWork',
    handlers: [work.checkToken,work.createNormalWork]
},
{
    method: 'POST',
    route: '/cancelNormalWork',
    handlers: [work.checkToken,work.cancelNormalWork]
},
{
    method: 'POST',
    route: '/deleteNormalWork',
    handlers: [work.checkToken,work.deleteNormalWork]
},
{
    method: 'POST',
    route: '/updateNormalWork',
    handlers: [work.checkToken,work.updateNormalWork]
},

{
    method: 'POST',
    route: '/chainWorkList',
    handlers: [work.checkToken,work.chainWorkList]
},
{
    method: 'POST',
    route: '/createChainWork',
    handlers: [work.checkToken,work.createChainWork]
},
{
    method: 'POST',
    route: '/deleteChainWork',
    handlers: [work.checkToken,work.deleteChainWork]
},
{
    method: 'POST',
    route: '/updateChainWork',
    handlers: [work.checkToken,work.updateChainWork]
}
]